<?php
class Component_Paypalpro_Register extends appRain_Base_Component
{
    public function init()
    {
        App::Module('Hook')->setHookName('Plugin')
                           ->setAction("paymentmethod")
                           ->Register(get_class($this),"register_paymentmethod");

		App::Module('Hook')->setHookName('Sitesettings')
                           ->setAction("register_definition")
                           ->Register(get_class($this),"register_sitesettings_defination");

    }

    public function init_on_install(){}

    public function init_on_uninstall(){}

    public function register_paymentmethod()
    {
        return
        Array('name'=>'paypalpro',
              'class_path'=>$this->attachMyPath('pgateway'));
    }

	public function register_sitesettings_defination()
    {
        $srcpaths = Array();
        $srcpaths[] = $this->attachMyPath('sitesettings/settings.xml');
        return array('filepaths'=>$srcpaths);
    }

}